.class public Lcom/xingbook/paint/b/g;
.super Lcom/xingbook/paint/b/a;


# direct methods
.method public constructor <init>(Lcom/xingbook/paint/a/a/c;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/paint/b/a;-><init>(Lcom/xingbook/paint/a/a/c;)V

    return-void
.end method


# virtual methods
.method public a(Landroid/graphics/Canvas;Landroid/graphics/Paint;)V
    .locals 6

    invoke-super {p0, p1, p2}, Lcom/xingbook/paint/b/a;->a(Landroid/graphics/Canvas;Landroid/graphics/Paint;)V

    iget v0, p0, Lcom/xingbook/paint/b/g;->g:F

    iget v1, p0, Lcom/xingbook/paint/b/g;->e:F

    cmpl-float v0, v0, v1

    if-lez v0, :cond_0

    iget v0, p0, Lcom/xingbook/paint/b/g;->f:F

    iget v1, p0, Lcom/xingbook/paint/b/g;->d:F

    cmpl-float v0, v0, v1

    if-gtz v0, :cond_1

    :cond_0
    iget v0, p0, Lcom/xingbook/paint/b/g;->g:F

    iget v1, p0, Lcom/xingbook/paint/b/g;->e:F

    cmpg-float v0, v0, v1

    if-gez v0, :cond_3

    iget v0, p0, Lcom/xingbook/paint/b/g;->f:F

    iget v1, p0, Lcom/xingbook/paint/b/g;->d:F

    cmpg-float v0, v0, v1

    if-gez v0, :cond_3

    :cond_1
    iget v0, p0, Lcom/xingbook/paint/b/g;->f:F

    iget v1, p0, Lcom/xingbook/paint/b/g;->d:F

    sub-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget v1, p0, Lcom/xingbook/paint/b/g;->g:F

    iget v2, p0, Lcom/xingbook/paint/b/g;->e:F

    sub-float/2addr v1, v2

    invoke-static {v1}, Ljava/lang/Math;->abs(F)F

    move-result v1

    cmpl-float v0, v0, v1

    if-lez v0, :cond_2

    iget v1, p0, Lcom/xingbook/paint/b/g;->d:F

    iget v2, p0, Lcom/xingbook/paint/b/g;->e:F

    iget v0, p0, Lcom/xingbook/paint/b/g;->d:F

    iget v3, p0, Lcom/xingbook/paint/b/g;->g:F

    add-float/2addr v0, v3

    iget v3, p0, Lcom/xingbook/paint/b/g;->e:F

    sub-float v3, v0, v3

    iget v4, p0, Lcom/xingbook/paint/b/g;->g:F

    move-object v0, p1

    move-object v5, p2

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    :goto_0
    return-void

    :cond_2
    iget v1, p0, Lcom/xingbook/paint/b/g;->d:F

    iget v2, p0, Lcom/xingbook/paint/b/g;->e:F

    iget v3, p0, Lcom/xingbook/paint/b/g;->f:F

    iget v0, p0, Lcom/xingbook/paint/b/g;->e:F

    iget v4, p0, Lcom/xingbook/paint/b/g;->f:F

    add-float/2addr v0, v4

    iget v4, p0, Lcom/xingbook/paint/b/g;->d:F

    sub-float v4, v0, v4

    move-object v0, p1

    move-object v5, p2

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    goto :goto_0

    :cond_3
    iget v0, p0, Lcom/xingbook/paint/b/g;->f:F

    iget v1, p0, Lcom/xingbook/paint/b/g;->d:F

    sub-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget v1, p0, Lcom/xingbook/paint/b/g;->g:F

    iget v2, p0, Lcom/xingbook/paint/b/g;->e:F

    sub-float/2addr v1, v2

    invoke-static {v1}, Ljava/lang/Math;->abs(F)F

    move-result v1

    cmpl-float v0, v0, v1

    if-lez v0, :cond_4

    iget v1, p0, Lcom/xingbook/paint/b/g;->d:F

    iget v2, p0, Lcom/xingbook/paint/b/g;->e:F

    iget v0, p0, Lcom/xingbook/paint/b/g;->d:F

    iget v3, p0, Lcom/xingbook/paint/b/g;->e:F

    add-float/2addr v0, v3

    iget v3, p0, Lcom/xingbook/paint/b/g;->g:F

    sub-float v3, v0, v3

    iget v4, p0, Lcom/xingbook/paint/b/g;->g:F

    move-object v0, p1

    move-object v5, p2

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    goto :goto_0

    :cond_4
    iget v1, p0, Lcom/xingbook/paint/b/g;->d:F

    iget v2, p0, Lcom/xingbook/paint/b/g;->e:F

    iget v3, p0, Lcom/xingbook/paint/b/g;->f:F

    iget v0, p0, Lcom/xingbook/paint/b/g;->e:F

    iget v4, p0, Lcom/xingbook/paint/b/g;->d:F

    add-float/2addr v0, v4

    iget v4, p0, Lcom/xingbook/paint/b/g;->f:F

    sub-float v4, v0, v4

    move-object v0, p1

    move-object v5, p2

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    goto :goto_0
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    const-string v0, "Square"

    return-object v0
.end method
